﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admin_ManageAdmin.aspx.cs" Inherits="Master_Admin_ManageAdmin" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="Css/Css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="Form1" runat="server">
    <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border" align="center">
        <tr>
            <td colspan="2" align="center" class="title">
                <strong>代理商管理</strong>
            </td>
        </tr>
        <tr class="tdbg">
            <td width="70" height="30">
                <strong>管理导航：</strong>
            </td>
            <td height="30">
               <a href="Admin_AddAgent.aspx">添加代理商</a>&nbsp;|&nbsp;<a href="Admin_ManageAgent.aspx">代理商管理</a>
            </td>
        </tr>
    </table>
    <asp:Panel ID="Pl_Manager" runat="server">
        <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="border">
            <tr class="title">
                <td height="30" align="center">
                    编号
                </td>
                <td height="30" align="center">
                    代理商名称
                </td>
                <td height="30" align="center">
                    分站
                </td>
                <td height="30" align="center">
                    地址
                </td>
                <td height="30" align="center">
                    开通时间
                </td>                
                <td height="30" align="center">
                   是否审核/是否锁定/点数
                </td>
                <td height="30" align="center">
                    操作
                </td>
            </tr>
            <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                <ItemTemplate>
                    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#cccccc'"
                        style="padding: 0px 2px;">
                        <td height="30" align="center">
                            <%#Eval("id") %>
                        </td>
                        <td align="center">
                            <%#Eval("AgentUserName")%>
                        </td>
                        
                        <td align="center">
                            <%#city.ProvinceName(Convert.ToInt32(Eval("LoginPro").ToString()), Convert.ToInt32(Eval("LoginCity").ToString()))%>/<%#city.CityName(Convert.ToInt32(Eval("LoginPro").ToString()), Convert.ToInt32(Eval("LoginCity").ToString()))%>
                        </td>
                        <td align="center">
                            <%#Eval("Address")%>
                        </td>
                        <td height="30" align="center">
                            <%#Eval("RegTime")%>
                        </td>    
                        <td align="center">
                            <%#Eval("IsCheck").ToString() == "0" ? "未审核" : "已审核"%>/<%#Eval("IsLock").ToString() == "0" ? "未锁定" : "已锁定"%>/<%#Eval("Disu")%>
                        </td>
                        <td align="center">
                        <asp:HiddenField ID="hldProvince" runat="server" Value='<%#Eval("LoginPro") %>' />
                        <asp:HiddenField ID="hldCity" runat="server" Value='<%#Eval("LoginCity") %>' />
                            <asp:LinkButton ID="btn_modify" runat="server" CommandArgument='<%#Eval("id") %>'
                                CommandName="Modify">修改</asp:LinkButton>
                            <asp:LinkButton ID="lbtnCheck" runat="server" CommandArgument='<%#Eval("id") %>'
                            CommandName="check" Text='<%#Eval("IsCheck").ToString()=="0"?"审核":"取消审核" %>' />
                            <asp:LinkButton ID="lbtnLock" runat="server" CommandArgument='<%#Eval("id") %>'
                            CommandName="lock" Text='<%#Eval("IsLock").ToString()=="0"?"锁定":"取消锁定" %>' />
                            <asp:LinkButton ID="btn_del" runat="server" CommandArgument='<%#Eval("id") %>' CommandName="delete"
                                OnClientClick="javascript:return confirm('是否真的删除,此操作将不可恢复!')">删除</asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <tr style="display:<%=totalCount==0?"block":"none" %>;">
                <td colspan="8">
                    暂时没有任何代理商
                </td>
            </tr>
            <tr class="tdbg">
                <td colspan="7" height="25" align="right">
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged"
                        CurrentPageButtonPosition="Beginning" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                        LayoutType="Table" NumericButtonTextFormatString="[{0}]" PageIndexBoxType="DropDownList"
                        PageSize="15" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                        TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" UrlPaging="True" AlwaysShow="True">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
        </table>
    </asp:Panel>
   
    </form>
</body>
</html>

